From: Ray Strode Date: Thu, 19 Feb 2015 19:39:26 +0000 (-0500) Subject: gdm: allow user to switch VTs using ctrl-alt-f[1-7] X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1848 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5cddab3305fa746fe8814909112fa74bd8d32d16;p=gnome-shell.git gdm: allow user to switch VTs using ctrl-alt-f[1-7] Users currently can't switch VTs while at the login screen. This commit fixes that, by adding the relevant keybindings to the login screen's allowed keybindings list. https://bugzilla.gnome.org/show_bug.cgi?id=744800 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 5e6bdb503..45edf3ac2 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -652,6 +652,14 @@ const WindowManager = new Lang.Class({ this._workspaceSwitcherPopup = null; this._tilePreview = null; + this.allowKeybinding('switch-to-session-1', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-2', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-3', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-4', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-5', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-6', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-7', Shell.ActionMode.ALL); + this.setCustomKeybindingHandler('switch-to-workspace-left', Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,